﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTabWidget>
#include <QVBoxLayout>
#include <QTableWidget>
#include <QCheckBox>
#include <QDateTimeEdit>

#include "logqueue.h"
#include "searchentry.h"
#include "logtabpanel.h"

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    /**
     * @brief 构造函数
     * @param rights    权限列表(顺序和LogQueue::LogType保持一致)
     * @param parent    父类(/父窗体)
     */
    MainWindow(const QList<bool> &rights, QWidget *parent = nullptr);
    ~MainWindow();

private:

    QTabWidget      *m_tabLogWidget;
    LogTabPanel     *m_softRunTab;
    LogTabPanel     *m_deviceTab;
    LogTabPanel     *m_userTab;
    LogTabPanel     *m_bgTraceTab;
    LogTabPanel     *m_alarmTab;
};
#endif // MAINWINDOW_H
